Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(megamenu-tab): change default value override method #12088

Merged
merged 6 commits into from
Nov 19, 2024

Conversation

andy-blum
Copy link
Contributor

Related Ticket(s)

Closes #12087

Description

Updates the method by which the megamenu-tab component overrides inherited values.

Testing

I'm not sure there's a good way to test this change and its impact on projects using react-wrapped components. For now, we should focus on making sure not to introduce regressions into the web components.

Changelog

Changed

  • fixes a bug in react-wrapped components

@andy-blum andy-blum requested a review from a team as a code owner October 30, 2024 20:26
@andy-blum andy-blum requested review from m4olivei, bruno-amorim, marcelojcs and Valentin-Sorin-Nicolae and removed request for a team October 30, 2024 20:26
Copy link

netlify bot commented Oct 30, 2024

Deploy Preview for ibm-dotcom-web-components ready!

Name Link
🔨 Latest commit 366b7ea
🔍 Latest deploy log https://app.netlify.com/sites/ibm-dotcom-web-components/deploys/673ca71185ecb200085a1caf
😎 Deploy Preview https://deploy-preview-12088--ibm-dotcom-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Oct 30, 2024

Deploy Preview for ibm-dotcom-web-components-react-wrap ready!

Name Link
🔨 Latest commit 366b7ea
🔍 Latest deploy log https://app.netlify.com/sites/ibm-dotcom-web-components-react-wrap/deploys/673ca71182825c0008961c18
😎 Deploy Preview https://deploy-preview-12088--ibm-dotcom-web-components-react-wrap.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@m4olivei m4olivei added the Ready to merge Label for the pull requests that are ready to merge label Nov 19, 2024
Copy link
Contributor

@m4olivei m4olivei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kodiakhq kodiakhq bot merged commit 5eb3f7f into main Nov 19, 2024
20 of 24 checks passed
@kodiakhq kodiakhq bot deleted the 12087-fix-react-wrapped-components branch November 19, 2024 15:16
kodiakhq bot pushed a commit that referenced this pull request Nov 19, 2024
### Related Ticket(s)

Closes #12087 (partially, see also #12088)

### Description

Fixes the following error reported when using react  wrapped components:

```
Error: The following properties on element c4d-locale-search will not trigger updates as expected because they are set using class fields: inputTimeout. Native class fields and some compiled output will overwrite accessors used for detecting changes. See https://lit.dev/msg/class-field-shadowing for more information.
```

### Changelog

**Changed**

- Declare `inputTimeout` class property of `ThrottledInputMixin` as abstract, relying on children to implement.

<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
Copy link
Contributor

Hey there! This issue/pull request was referenced in recently released v2.16.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready to merge Label for the pull requests that are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[React-wrapped components]: Issues with class fields
2 participants